<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class BindRequest extends BaseRequest
{

    public function rules()
    {
        return [
            'mobile' => 'required|regex:/^1[3456789]\d{9}$/',
            'code' => 'required',
        ];
    }

    public function attributes()
    {
        return [
            'mobile' => '手机号',
            'code' => '验证码',
        ];
    }
}
